import request from '@/utils/request'

// 查询校验规则列表
export function listTableStandardcheck(query) {
  return request({
    url: '/reportworld/tableStandardcheck/list',
    method: 'get',
    params: query
  })
}

// 查询校验规则详细
export function getTableStandardcheck(id) {
  return request({
    url: '/reportworld/tableStandardcheck/' + id,
    method: 'get'
  })
}

// 新增校验规则
export function addTableStandardcheck(data) {
  return request({
    url: '/reportworld/tableStandardcheck',
    method: 'post',
    data: data
  })
}

// 修改校验规则
export function updateTableStandardcheck(data) {
  return request({
    url: '/reportworld/tableStandardcheck',
    method: 'put',
    data: data
  })
}

// 删除校验规则
export function delTableStandardcheck(id) {
  return request({
    url: '/reportworld/tableStandardcheck/' + id,
    method: 'delete'
  })
}

// 初始化查询
export function init() {
  return request({
    url: '/reportworld/tableStandardcheck/init',
    method: 'put'
  })
}
